<?php
require_once("../login/class.session.php");
require_once("../functions.php");
if (!isset($session->logged_in) || !$session->logged_in) {
  header("Location: ../createaccount.php");
}

$userinfo = $session->userinfo;
?>

<?php require_once("../header.php"); ?>

<div class = "box profile">  
<h3>Create Your Profile</h3>
<table>		
  <form method="post" action="../process.php">
		<tr><td colspan="2"><h4>Contact Information</h4></td></tr>
		<tr>
			<td>Username: </td> <td><?= $userinfo['username'] ?></td>
		</tr>
		<tr>
			<td>Display Name:</td><td><input name="displayname" type="text" /></td>
		</tr>
		<tr>
			<td>Email:</td><td><input name="email" type="text" /></td>
		</tr>
    <tr>
			<td>Website:</td><td><input name="website" type="text" /></td>
		</tr>

		<tr><td colspan="2"><h4>Location</h4></td></tr>
		<tr>
			<td>City:</td><td><input name="city" type="text" /></td>
		</tr>
		<tr>
    <td>State/Province:</td><td><? echo state_selection(""); ?></td>
		</tr>
		<tr>
			<td>Country:</td><td><? echo country_selection(""); ?></td>
    </tr>    
		<tr><td colspan="2"><h4>Artist Information</h4></td></tr>
		<tr>
      <td>Members:</td><td><textarea name="members" type="text" ></textarea></td>
		</tr>
		<tr>
			<td>Genre:</td><td><input name="genre" type="text" /></td>
		</tr>
		<tr>
			<td>Record Label:</td><td><textarea name="recordlabel" type="text"></textarea></td>
		</tr>
		<tr>
			<td>Bio:</td><td><textarea name="bio" type="text"></textarea></td>
		</tr>
		<tr>
			<td>Influences:</td><td><input name="influences" type="text" /></td>
		</tr>
		<tr>
			<td>Sounds Like:</td><td><input name="soundslike" type="text" /></td>
    </tr>
    
		<tr>	
			<td></td><td><input class = "color_button blue small" type="submit" id="pass_submit" value="Create!" /></td>
				  
		</tr>
    <input type="hidden" name="subedit" value="1">

	</form>
</table>
</div>

<?php require_once("../footer.php");
